<script th:src="@{#{webjars.es5shim.js}}" type="text/javascript"></script>
<script th:src="@{#{webjars.cssVarsPonyfill.js}}" type="text/javascript"></script>
<script async defer src="//www.google.com/recaptcha/api.js"
        th:if="${recaptchaSiteKey != null and recaptchaVersion=='v2'}"></script>
<script th:if="${recaptchaSiteKey != null and recaptchaVersion == 'v3'}"
        th:src="${'//www.google.com/recaptcha/api.js?render=' + recaptchaSiteKey}"></script>

<script th:src="@{#{webjars.jquery.js}}" type="text/javascript"></script>
<script th:src="@{#{webjars.material-components.js}}" type="text/javascript"></script>

<script th:src="@{${#themes.code('cas.standard.js.file')}}" type="text/javascript"></script>

<script th:inline="javascript">
    resourceLoadedSuccessfully();
    cssVars({});
</script>

<script th:inline="javascript">
    /*<![CDATA[*/

    var trackGeoLocation = /*[[${trackGeoLocation}]]*/ ===
    "true";

    var googleAnalyticsTrackingId = /*[[${googleAnalyticsTrackingId}]]*/;

    if (googleAnalyticsTrackingId != null && googleAnalyticsTrackingId != '') {
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r;
            i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date();
            a = s.createElement(o),
                m = s.getElementsByTagName(o)[0];
            a.async = 1;
            a.src = g;
            m.parentNode.insertBefore(a, m)
        })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');

        ga('create', googleAnalyticsTrackingId, 'auto');
        ga('send', 'pageview');
    }

    /*]]>*/
</script>
